package com.ocom.common.entity.payconfig;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * dishes_info
 * @author 
 */
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "dishes_info")
@Data
public class EntityDishesInfo implements Serializable {
    private static final long serialVersionUID = -453377957437755819L;
    /**
     * 菜品编号，主键自增
     */
    @TableId(value = "dishes_id", type = IdType.AUTO)
    private Integer dishesId;

    /**
     * 单位编号
     */
    private Long comId;

    /**
     * 商户编号（0表示单位）
     */
    private Integer merchId;

    /**
     * 菜品分类编号
     */
    private Integer dishesClassId;

    /**
     * 菜品名称
     */
    private String dishesName;

    /**
     * 菜品代码
     */
    private String dishesCode;

    /**
     * 排序号
     */
    private Integer sort;

    /**
     * 状态：1-上架；2-下架
     */
    private Byte status;

    /**
     * 说明
     */
    private String remark;

    /**
     * 图片链接
     */
    private String photoUrl;

    /**
     * 生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人p_id
     */
    private Integer createUserid;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private Integer quotaMin;

    private Integer quotaMax;
}